package com.xgg.taiwuinfo.gongfa.abilities;

import android.content.Context;

//运功时的防御效果
public class Ability_YunGong_Defend
{
    final int mHuti;
    final int mHutiFahui ;
    final int mYuqi ;
    final int mYuqiFahui ;
    final int mNeixi;
    final int mNeixiFahui ;
    final int mXieli ;
    final int mXieliFahui ;
    final int mChaizhao ;
    final int mChaizhaoFahui ;
    final int mShanbi ;
    final int mShanbiFahui ;
    public static final int Count = 12;

    public int getHuti(){return mHuti;}

    public int getHutiFahui(){return mHutiFahui;}

    public int getYuqi(){return mYuqi;}

    public int getYuqiFahui(){return mYuqiFahui;}

    public int getNeixi(){return mNeixi;}

    public int getNeixiFahui(){return mNeixiFahui;}

    public int getXieli(){return mXieli;}

    public int getXieliFahui(){return mXieliFahui;}

    public int getChaizhao(){return mChaizhao;}

    public int getChaizhaoFahui(){return mChaizhaoFahui;}

    public int getShanbi(){return mShanbi;}

    public int getShanbiFahui(){return mShanbiFahui;}

    public Ability_YunGong_Defend(int [] defend)
    {
        mHuti = defend[0];
        mYuqi = defend[1];
        mNeixi = defend[2];
        mHutiFahui = defend[3];
        mYuqiFahui = defend[4];
        mNeixiFahui = defend[5];
        mXieli = defend[6];
        mChaizhao = defend[7];
        mShanbi = defend[8];
        mXieliFahui = defend[9];
        mChaizhaoFahui = defend[10];
        mShanbiFahui = defend[11];
    }

    public String getDescString(Context ctx)
    {
        String rt = "";
        if (mHuti !=  0) { String str = String.format("护体: +%d\r\n" , mHuti); rt += str;}
        if (mHutiFahui !=  0) { String str = String.format("护体发挥: +%d%%\r\n" , mHutiFahui); rt += str;}
        if (mYuqi !=  0) { String str = String.format("御气: +%d\r\n" , mYuqi); rt += str;}
        if (mYuqiFahui !=  0) { String str = String.format("御气发挥: +%d%%\r\n" , mYuqiFahui); rt += str;}
        if (mNeixi !=  0) { String str = String.format("内息: +%d\r\n" , mNeixi); rt += str;}
        if (mNeixiFahui !=  0) { String str = String.format("内息发挥: +%d%%\r\n" , mNeixiFahui); rt += str;}
        if (mXieli !=  0) { String str = String.format("卸力: +%d\r\n" , mXieli); rt += str;}
        if (mXieliFahui !=  0) { String str = String.format("卸力发挥: +%d%%\r\n" , mXieliFahui); rt += str;}
        if (mChaizhao !=  0) { String str = String.format("拆招: +%d\r\n" , mChaizhao); rt += str;}
        if (mChaizhaoFahui !=  0) { String str = String.format("拆招发挥: +%d%%\r\n" , mChaizhaoFahui); rt += str;}
        if (mShanbi !=  0) { String str = String.format("闪避: +%d\r\n" , mShanbi); rt += str;}
        if (mShanbiFahui !=  0) { String str = String.format("闪避发挥: +%d%%\r\n" , mShanbiFahui); rt += str;}
        return rt;
    }

}
